//
//  ResidentMessageController.m
//  homeland
//
//  Created by Alawn on 13-10-30.
//  Copyright (c) 2013年 xzysun. All rights reserved.
//

#import "ResidentMessageController.h"
#import "AdvisoryListViewController.h"
@interface ResidentMessageController ()

@end

@implementation ResidentMessageController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.title=@"留言";
     self.navigationItem.rightBarButtonItem = getCustomNavButton(@"言论列表", self, @selector(rightButtonAction:));
    
}
-(void)rightButtonAction:(id)sender
{
    AdvisoryListViewController *advisoryVC = [[AdvisoryListViewController alloc]initWithNibName:@"AdvisoryListViewController" bundle:nil];
    [self.navigationController pushViewController:advisoryVC animated:YES];
}
- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
